package com.fishery.processing.client;

import com.fishery.entity.Result;
import com.fishery.processing.handler.BaseClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author run
 * @since 2021/3/13 11:17
 */
@FeignClient(value = "fishery-base-service", fallback = BaseClientFallback.class)
public interface BaseClient {

    @GetMapping("/base/{baseId}")
    public Result getBaseMessage(@PathVariable(value = "baseId") String baseId);
}
